FROM nginx:alpine as production-stage

# 复制构建后的静态文件到Nginx的静态文件目录中
COPY  dist/ /usr/share/nginx/html/

# 复制nginx配置文件到容器中
COPY nginx.conf /etc/nginx/conf.d/default.conf

# 暴露8081端口，这是Nginx的标准HTTP端口
EXPOSE 8081
CMD ["nginx", "-g", "daemon off;"]
